﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using System.IO;
using System.Collections;

namespace CommunityServerRest {

	[XmlRoot("BlogList")]
	public class BlogList {
		[XmlElement("Blog")]
		public Blog[] Blogs { get; set; }

		internal static BlogList Deserialize(System.IO.Stream stream) {
			XmlSerializer serializer = new XmlSerializer(typeof(BlogList));
			StreamReader reader = new StreamReader(stream);
			BlogList blogList = (BlogList)serializer.Deserialize(reader);
			reader.Close();
			return blogList;
		}
	}
}
